/**
 * @author MIAO
 * Created on 2011-11-13
 * For more information, please visit:ismiao.com
 */
package com.ismiao.java.Callback;

public class TestObject {

	public static void testMethod() {
		for (int i = 0; i < 100000000; i++) {
		}
	}

	public void testTime() {
		long begin = System.currentTimeMillis();// 测试起始时间
		testMethod();// 测试方法
		long end = System.currentTimeMillis();// 测试结束时间
		System.out.println("[use time]:" + (end - begin));// 打印使用时间
	}

	public static void main(String[] args) {
		TestObject test = new TestObject();
		test.testTime();
	}

}
